﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Styles/Admin.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="listingActions">
        <a href="modify.aspx">Add new item</a>
        <br />
    </div>
    <asp:Repeater runat="server" ID="ContentRepeater">
        <HeaderTemplate>
            <table class="listingTable">
                <tr>
                    <th class="listingFirstRow">Contentname and date</th>
                    <th colspan="2">Actions</th>
                </tr>            
        </HeaderTemplate>
        <ItemTemplate>
                <tr id="Tr1" runat="server">
                    <td id="tdName" runat="server"><%#Eval("contentTitle") %> - <%#Eval("contentDate") %></td>
                    <td id="tdUpdate" runat="server"><a href="modify.aspx?id=<%#Eval("contentID") %>">Update</a></td>
                    <td id="tdDelete" runat="server"><a href="delete.aspx?id=<%#Eval("contentID") %>">Delete</a></td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>

